package com.hj.domain;

public class Actor extends Person{
    public String school;
    public String object;

    public Actor() {
    }

    public Actor(String name, int age, String sex, String school, String object) {
        super(name, age, sex);
        this.school = school;
        this.object = object;
    }

    @Override
    public void introduction() {
        super.introduction();
        System.out.println("我毕业于"+school);
        System.out.println("最喜欢的科目是"+object);
    }
}
